import request from "@/utils/request";

export default {
  // 烟感设备详情
  getSmokeDeviceDetail(data) {
    const url = "main/survey/model";
    return request.get(url, data);
  },
  // http://127.0.0.1:8301/main/equipment/list?pageNum=1&pageSize=10&isNeedEleData=true&deviceType=97
  getEquipmentList(data) {
    const url = "main/equipment/list";
    return request.get(url, data);
  },
  /**
   * 查找设备实时数据
   */
  getDeviceRealTimeData(data) {
    const url = "console/electricityRealtime/queryList";
    return request.postBody(url, data);
  },
  /**
   * 统计工单数据
   */
  countJobData(data) {
    const url = "console/api/v1/alarm-job/countJob";
    return request.postBody(url, data);
  },
  /**
   * 统计设备故障数据
   */
  countAlertData(data) {
    const url = "alert/equipmentCollectAlert/countAlert";
    return request.postBody(url, data);
  },
  /**
   * 按月统计报警/故障接口
   */
  countAlertByMonthData(data) {
    const url = "alert/equipmentCollectAlert/countAlertByMonth";
    return request.postBody(url, data);
  },
  /**
   * 按月统计工单接口
   */
  countJobByMonthData(data) {
    const url = "console//api/v1/alarm-job/countJobByMonth";
    return request.postBody(url, data);
  }
};
